/**
 * Copyright 2015年1月30日 Wang Zheng
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @author Wang Zheng ufo5260987423@163.com
 *
 */
package com.ufo5260987423.graphDatabase.core.sqlTypes;

/**
 * @ClassName: AbstractSqlType
 * @Description: TODO
 * @author ufo ufo5260987423@163.com
 * @date 2015年3月26日 下午7:45:31
 * 
 */
public abstract class AbstractSqlType<ContentType> implements SqlizeInf {
	private ContentType content;
	private Short size;

	public String toString() {
		return this.getContent().toString();
	}

	public ContentType getContent() {
		return content;
	}

	public void setContent(ContentType content) {
		this.content = content;
	}

	@Override
	public String sqlize() {
		return this.getSqlTypeName() + "(" + this.getSize() + ")";
	}

	@Override
	public Short getSize() {
		return this.size;
	}

	@Override
	public void setSize(Short size) {
		this.size = size;
	}
}
